import request from "../utils/request"
const url = '/user'
export function BlogLogin(account, passWord) {
    return request.get(`${url}/login?account=${account}&passWord=${passWord}`,)
}
export function register(data) {
    return request.post(`${url}/register`, data)
}
export function getAllUser() {
    return request.get(`${url}/getAllUser`)
}
export function getUserById(id) {
    return request.get(`${url}/getUserById?id=${id}`)
}

//账号 昵称 是否被ban多条件模糊查询
export function searchUsers(data) {
    return request.get(`${url}/searchUsers`,data)
}
export function editUserById(data) {
    return request.post(`${url}/editUserById`, data)
}
export function delUserById(data) {
    return request.post(`${url}/delUserById`, data)
}

